package cn.iocoder.yudao.module.reclaim.controller.admin.productcheckdeductitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - 回收核验扣除项新增/修改 Request VO")
@Data
public class ReclaimCheckDeductItemSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17474")
    private Long id;

    @Schema(description = "核验结果id", requiredMode = Schema.RequiredMode.REQUIRED, example = "30105")
    @NotNull(message = "核验结果id不能为空")
    private Long resId;

    @Schema(description = "扣项名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotNull(message = "扣项名称不能为空")
    private String itemName;

    @Schema(description = "扣项原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不香")
    @NotNull(message = "扣项原因不能为空")
    private String reason;

    @Schema(description = "扣项总价", requiredMode = Schema.RequiredMode.REQUIRED, example = "19023")
    @NotNull(message = "扣项总价不能为空")
    private Integer totalPrice;

    @Schema(description = "扣项价格/单个", requiredMode = Schema.RequiredMode.REQUIRED, example = "9612")
    @NotNull(message = "扣项价格/单个不能为空")
    private Integer price;

    @Schema(description = "扣项计数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "扣项计数不能为空")
    private Integer itemNumber;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你说的对")
    @NotEmpty(message = "备注不能为空")
    private String remark;

    @Schema(description = "扣项照片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "扣项照片不能为空")
    private List<String> itemPic;

}